﻿import QtQuick 2.4

Item
{
    id:statu
    //卫星
    property bool satelliteBy: false
    property bool cancelSatelliteBy: false
    property bool showTrackBy: false
    property bool cancelTrackBy: false
    property bool solidBy: false
//    Rectangle
//    {
//        id:satelliteRec
//        width: 39
//        height: 36
//        anchors.left: parent.left
////        anchors.leftMargin: 14
//        anchors.leftMargin: -6
//        anchors.top: parent.top
//        anchors.topMargin: 6
//        color: "transparent"
//        Image {
//            id:satelliteImag
//            source: "./切图/按钮/卫星.png"
//            anchors.verticalCenter: parent.verticalCenter
//            anchors.horizontalCenter: parent.horizontalCenter
//            MouseArea
//            {
//                id:satelliteArea
//                anchors.fill: parent
//                hoverEnabled:true
//                onEntered:
//                {
//                    satelliteImag.width = 48
//                    satelliteImag.height = 39
//                    satelliteImag.source = "./切图/按钮/卫星触碰.png"
//                }
//                onExited:
//                {
//                        satelliteImag.width = 38
//                        satelliteImag.height = 35

//                }
//                onClicked:
//                {
//                    if(satelliteImag.width !=38 ||  satelliteImag.height !=35)
//                    {
//                        satelliteImag.width = 38
//                        satelliteImag.height =35
//                        satelliteImag.source = "./切图/按钮/卫星.png"
//                    }

//                    if (satelliteBy === false)
//                    {
//                        satelliteBy=true
//                        mainApp.slotShowWindow(1)
//                    }else
//                    {
//                        satelliteBy=false
//                        mainApp.slotShowWindow(2)
//                    }

//                }
//            }
//        }
//    }

    Rectangle
    {
       id:cancelSatelliteRec
       width: 30
        height: 36
////        anchors.left: satelliteRec.right
////        anchors.leftMargin: 8
////        anchors.top: satelliteRec.top
////        color: "transparent"
        anchors.left: parent.left

        anchors.leftMargin: -6
        anchors.top: parent.top
        anchors.topMargin: 6
        color: "transparent"
        Image {
            id:cancelSatelliteImag
            source: "./切图/按钮/地球.png"
//            //        anchors.left: parent.left
//            //        anchors.leftMargin: 53
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
           MouseArea
            {
                id:cancelSatelliteArea
                anchors.fill: parent
                hoverEnabled:true
                onEntered:
                {
                   cancelSatelliteImag.width = 38
                    cancelSatelliteImag.height = 38
                    cancelSatelliteImag.source =  "./切图/按钮/地球触碰.png"
                }
                onExited:
                {
                        cancelSatelliteImag.width = 33
                        cancelSatelliteImag.height = 33
                    cancelSatelliteImag.source =  "./切图/按钮/地球.png"
                }
                onClicked:
               {
                    if(cancelSatelliteImag.width !=33 ||  cancelSatelliteImag.height !=33)
                    {
                        cancelSatelliteImag.width = 33
                        cancelSatelliteImag.height =33
                        cancelSatelliteImag.source =  "./切图/按钮/地球.png"
                    }

                    if (cancelSatelliteBy === false)
                    {
                        cancelSatelliteBy=true
                    }else
                    {
                        cancelSatelliteBy=false
                    }

                    earthView.slotGotoHome();

                }
            }
        }

    }

    Rectangle
   {
       id:showTrackRec
        width: 36
       height: 36
        anchors.left: cancelSatelliteRec.right
        anchors.leftMargin: 8
         anchors.top: cancelSatelliteRec.top
        color: "transparent"
        Image {
            id: showTrackImage
            source: "./切图/按钮/河南.png"
//            //        anchors.left: cancelSatelliteImag.right
//            //        anchors.leftMargin: 14
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
            MouseArea
            {
                id:showTrackArea
                anchors.fill: parent
                hoverEnabled:true
                onEntered:
               {
                    showTrackImage.width = 44
                    showTrackImage.height = 43
                    showTrackImage.source = "./切图/按钮/河南触碰.png"
                }
                onExited:
                {
                    showTrackImage.width = 37
                    showTrackImage.height = 36
                    showTrackImage.source = "./切图/按钮/河南.png"
                }
                onClicked:
                {


                    if(showTrackImage.width !=37||  showTrackImage.height !=36)
                    {
                        showTrackImage.width = 37
                        showTrackImage.height =36
                        showTrackImage.source = "./切图/按钮/河南.png"
                    }

                    if (showTrackBy === false)
                    {
                        showTrackBy=true
                    }else
                    {
                        showTrackBy=false
                    }
                    earthView.slotGotoHenan();
                }
            }
        }
    }
    Rectangle
    {
        id:cancelTrackRec
        width: 40
        height: 36
        anchors.left: showTrackRec.right
        anchors.leftMargin: 8
        anchors.top: cancelSatelliteRec.top
        color: "transparent"
       Image {
           id: cancelTrackImage
            source: "./切图/按钮/立体正常.png"
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
            MouseArea
            {
               id:cancelTrackArea
                anchors.fill: parent
                hoverEnabled:true
                onEntered:
                {
                    cancelTrackImage.width = 49
                    cancelTrackImage.height = 38
                    cancelTrackImage.source = "./切图/按钮/立体触碰.png"
                }
                onExited:
                {
                    cancelTrackImage.width = 41
                    cancelTrackImage.height = 32
                    cancelTrackImage.source = "./切图/按钮/立体正常.png"
                }
                onClicked:
                {

                    if(cancelTrackImage.width !=41||  cancelTrackImage.height !=32)
                    {
                        cancelTrackImage.width = 41
                        cancelTrackImage.height =32
                        cancelTrackImage.source = "./切图/按钮/立体正常.png"
                    }

                    if (cancelTrackBy === false)
                    {
                        cancelTrackBy=true
                    }else
                    {
                        cancelTrackBy=false
                    }
                    //mainApp.slotActivateStereo()
                    earthView.slotStereo();
                }
            }
        }

   }

//    Rectangle
//    {
//        id:solidRec
//        width: 40
//        height: 36
//        anchors.left: cancelTrackRec.right
//        anchors.leftMargin: 8
//        color: "transparent"
//        Image {
//            id: solidImage
//            source: "./切图/按钮/立体正常.png"
//            anchors.verticalCenter: parent.verticalCenter
//            anchors.horizontalCenter: parent.horizontalCenter
//            MouseArea
//            {
//                id:solidArea
//                anchors.fill: parent
//                hoverEnabled:true
//                onEntered:
//                {
//                    solidImage.source = "./切图/按钮/立体点击.png"
//                    solidImage.width = 40
//                    solidImage.height = 26
//                }
//                onExited:
//                {

//                    if(solidBy=== false)
//                    {
//                        solidImage.source = "./切图/按钮/立体正常.png"
//                        solidImage.width = 31
//                        solidImage.height = 20

//                    }
//                    else
//                    {
//                        solidImage.width = 31
//                        solidImage.height = 20
//                    }
//                }
//                onClicked:
//                {
//                    solidImage.source = "./切图/按钮/立体点击.png"
//                    if(solidImage.width !=31||  solidImage.height !=20)
//                    {
//                        solidImage.width = 31
//                        solidImage.height =20
//                    }

//                    if (solidBy === false)
//                    {
//                        solidImage.source = "./切图/按钮/立体点击.png"
//                        solidBy=true
//                    }else
//                    {
//                        solidImage.source = "./切图/按钮/立体正常.png"
//                        solidBy=false
//                    }
//                }
//            }
//        }


//    }

}
